import request from '@/utils/request'
import upload from '@/utils/upload.js'

export function text2Audio(data) {
	return request({
		'url': '/audio/getAudioStream/' + data,
		headers: {
			isToken: false
		},
		'method': 'get',
	})
}

export function uploadImage(data) {
	console.log(data)
	return upload({
		url: '/audio/uploadImage',
		filePath: data.filePath,
		name: data.name
	})
}